
const requireAll = content => content.keys().map(content);
const apiRequestObjs = require.context('./',true,/index\.js$/);
let request = {};
requireAll(apiRequestObjs).forEach(apiRequests => {
    if (JSON.stringify(apiRequests) === '{}') {
        return;
    }
    let factObj = apiRequests.default || apiRequests;
    request = Object.assign(request,factObj);
});

export default request;